#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h"

int main()
{
	ST SList;
	STInit(&SList);
	STPush(&SList,1);
	printf("%d ", STTop(&SList));
	STPop(&SList);
	STPush(&SList,2);
	STPush(&SList,3);
	printf("%d ", STTop(&SList));
	STPop(&SList);
	STPush(&SList,4);
	STPush(&SList,5);
	printf("%d ", STTop(&SList));
	STPop(&SList);
	while(!STEmpty(&SList))
	{
		printf("%d ", STTop(&SList));
		STPop(&SList);
	}
	STDestroy(&SList);
	return 0;
}